//
//  SDCycleScrollerView.h
//  CycleScrollerView
//
//  Created by shansander on 2016/11/25.
//  Copyright © 2016年 shansander. All rights reserved.
//

#import <UIKit/UIKit.h>
#import "SDCycleView.h"
@class SDCycleScrollerView;

@protocol SDCycleDelegate <NSObject>
@optional;
- (NSInteger)numberOfCycleView:(SDCycleScrollerView *)cycleScrollerView;
@required;
- (SDCycleView *)cycleView:(SDCycleScrollerView *)cycleScrollerView cycleViewForRow:(NSInteger)row;

@end

typedef enum {
    Scroll_Horizontal,
    Scroll_Vertical,
}Scroll_dirction;

typedef enum {
    scroll_gesture_dirction_right,
    scroll_gesture_dirction_left,
    scroll_gesture_dirction_up,
    scroll_gesture_dirction_down,
}scroll_gesture_dirction;


@interface SDCycleScrollerView : UIView<UIScrollViewDelegate>
{
    UIScrollView * theRootScroolerView;
    scroll_gesture_dirction gesture_dirction;
    
}

@property (nonatomic, strong) NSMutableArray * viewmap;

/**
 * 当前的页面
 */
@property (nonatomic, assign) NSInteger current_page;

/**
 * scroll 滚动的方向
 */
@property (nonatomic, assign) Scroll_dirction sDirction;


@property (nonatomic, strong) id<SDCycleDelegate>delegate;


- (void)reloadData;
@end
